#!/usr/bin/env python
import sys, os, os.path

from distutils.core import setup, Extension

myqq_home = os.getenv('MYQQ_HOME') or os.getcwd()

myqq_module = Extension('_myqq',
                        sources=['myqq.i'],
                        include_dirs=[os.path.join(myqq_home, 'src')],
                        libraries=['libqq', 'iconv'],
                        library_dirs=[myqq_home],
                        )

setup (name = 'pymyqq',
       version = "0.1",
       author = "Flier Lu",
       author_email = "flier.lu@gmail.com",
       url = "http://code.google.com/p/pymyqq/",       
       description = "Python wrapper for the myqq library",
       download_url = "http://code.google.com/p/pymyqq/downloads/list",
       classifiers = [
            "Development Status :: 3 - Alpha",
            "Environment :: Plugins",
            "Intended Audience :: Developers",
            "Intended Audience :: System Administrators",
            "License :: OSI Approved :: MIT License",
            "Natural Language :: English",
            "Operating System :: Microsoft :: Windows",
            "Operating System :: POSIX :: Linux",
            "Programming Language :: Python",
            "Topic :: Communications :: Chat",
            "Topic :: Internet",
            "Topic :: Software Development :: Libraries :: Python Modules",            
       ],
       ext_modules = [myqq_module],
       py_modules = ["myqq", "qq"],
       )